﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<WebMvc.Models.Ticket>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Crear Ticket
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Crear Ticket</h2>
    
    <% using (Html.BeginForm("Crear", "Tickets")) { %>
        
        <fieldset>
            
            <legend>Datos del Ticket</legend>
            
            <div>Nombre: <%= Html.TextBoxFor(m => m.Nombre)%> </div>
        
            <div>Descripción: <%= Html.TextAreaFor(m => m.Descripcion)%> </div>
            
            <div>Crear Sala: <%= Html.CheckBox("crearSalaAutomaticamente") %></div>
            
            <input type="submit" value="Crear" />
            
            <a href="<%= Url.Action("Index", "Tickets") %>">Volver</a>
            
        </fieldset>
    <% } %>

</asp:Content>
